package com.ruoyi.volunteer.activity.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动管理对象 voluntary_activity
 * 
 * @author ruoyi
 * @date 2025-01-08
 */
public class VoluntaryActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动id */
    @Excel(name = "活动id")
    private Long id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String name;

    /** 发起人id */
    @Excel(name = "发起人id")
    private Long userId;

    /** 发起人昵称 */
    @Excel(name = "发起人昵称")
    private String nickName;

    /** 发起人账号 */
    @Excel(name = "发起人账号")
    private String userName;

    /** 招募人数 */
    @Excel(name = "招募人数")
    private Integer recruit;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgPath;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date begin;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date end;

    /** 活动地址 */
    @Excel(name = "活动地址")
    private String address;

    /** 服务领域id */
    @Excel(name = "服务领域id")
    private Long fieldId;

    /** 服务领域名称 */
    @Excel(name = "服务领域名称")
    private String fieldName;

    /** 服务对象id */
    @Excel(name = "服务对象id")
    private Long targetId;

    /** 服务对象名称 */
    @Excel(name = "服务对象名称")
    private String targetName;

    /** 服务场所id */
    @Excel(name = "服务场所id")
    private Long venueId;

    /** 服务场所名称 */
    @Excel(name = "服务场所名称")
    private String venueName;

    /** 联系人姓名 */
    @Excel(name = "联系人姓名")
    private String contactName;

    /** 联系人电话 */
    @Excel(name = "联系人电话")
    private String contactPhone;

    /** 活动介绍 */
    @Excel(name = "活动介绍")
    private String introduction;

    /** $column.columnComment */
    private Integer isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRecruit(Integer recruit) 
    {
        this.recruit = recruit;
    }

    public Integer getRecruit() 
    {
        return recruit;
    }
    public void setImgPath(String imgPath) 
    {
        this.imgPath = imgPath;
    }

    public String getImgPath() 
    {
        return imgPath;
    }
    public void setBegin(Date begin) 
    {
        this.begin = begin;
    }

    public Date getBegin() 
    {
        return begin;
    }
    public void setEnd(Date end) 
    {
        this.end = end;
    }

    public Date getEnd() 
    {
        return end;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setFieldId(Long fieldId) 
    {
        this.fieldId = fieldId;
    }

    public Long getFieldId() 
    {
        return fieldId;
    }
    public void setTargetId(Long targetId) 
    {
        this.targetId = targetId;
    }

    public Long getTargetId() 
    {
        return targetId;
    }
    public void setVenueId(Long venueId) 
    {
        this.venueId = venueId;
    }

    public Long getVenueId() 
    {
        return venueId;
    }
    public void setContactName(String contactName) 
    {
        this.contactName = contactName;
    }

    public String getContactName() 
    {
        return contactName;
    }
    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }
    public void setIntroduction(String introduction) 
    {
        this.introduction = introduction;
    }

    public String getIntroduction() 
    {
        return introduction;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getTargetName() {
        return targetName;
    }

    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }

    public String getVenueName() {
        return venueName;
    }

    public void setVenueName(String venueName) {
        this.venueName = venueName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("userId", getUserId())
            .append("recruit", getRecruit())
            .append("imgPath", getImgPath())
            .append("begin", getBegin())
            .append("end", getEnd())
            .append("address", getAddress())
            .append("fieldId", getFieldId())
            .append("targetId", getTargetId())
            .append("venueId", getVenueId())
            .append("contactName", getContactName())
            .append("contactPhone", getContactPhone())
            .append("introduction", getIntroduction())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
